package eventplanner.validation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = URLValidator.class)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE})
public @interface URL {
	String message() default "The url is invalid";

	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default {};
}
